﻿using System;
using System.Windows;
using System.Windows.Controls;

namespace FazaDemo.PL.Wpf
{
    class TextBoxFactory : IVisualElemFactory
    {

        private readonly string _name;

        public TextBoxFactory(string name)
        {
            _name = name;
        }

        public UIElement Create()
        {
            return new TextBox{Name = _name};
        }
    }
}